package vn.edu.saigontech.ncms.model.info;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.OptimisticLockType;

import vn.edu.saigontech.ncms.model.BaseEntity;

@Entity
@org.hibernate.annotations.Entity(dynamicInsert = true, dynamicUpdate = true, optimisticLock = OptimisticLockType.ALL)
@Table(name = "ncms_additional_info")
@SuppressWarnings("serial")
public class AdditionalInfo extends BaseEntity {
	@Column(name = "school", length = 150)
	private String school;
	
	@Column(name = "class", length = 100)
	private String clazz;
	
	@Column(name = "studied_english_center", length = 150)
	private String studiedEnglishCenter;
	
	@ManyToOne(fetch = FetchType.LAZY)
	@JoinColumn(name = "school_grade_id")
	private SchoolGrade schoolGrade;

	public String getSchool() {
		return school;
	}

	public void setSchool(String school) {
		this.school = school;
	}

	public String getClazz() {
		return clazz;
	}

	public void setClazz(String clazz) {
		this.clazz = clazz;
	}

	public String getStudiedEnglishCenter() {
		return studiedEnglishCenter;
	}

	public void setStudiedEnglishCenter(String studiedEnglishCenter) {
		this.studiedEnglishCenter = studiedEnglishCenter;
	}

	public SchoolGrade getSchoolGrade() {
		return schoolGrade;
	}

	public void setSchoolGrade(SchoolGrade schoolGrade) {
		this.schoolGrade = schoolGrade;
	}
}